package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.pojo.manager.TbWxOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbWxOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TbWxOrder record);

    int insertSelective(TbWxOrder record);

    TbWxOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbWxOrder record);

    int updateByPrimaryKey(TbWxOrder record);

    List<TbWxOrder> selectList(@Param("search") String search, @Param("state") int[] state, @Param("minDate") String minDate,
                                @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                @Param("orderDir") String orderDir);

    int updateStateByPrimaryKey(@Param("id")long id,@Param("state") int state);
}